package com.eduhzy.ttw.teacher.di.component;

import com.eduhzy.ttw.teacher.di.module.CreateClassModule;
import com.eduhzy.ttw.teacher.mvp.contract.CreateClassContract;
import com.eduhzy.ttw.teacher.mvp.ui.activity.ChooseClassActivity;
import com.eduhzy.ttw.teacher.mvp.ui.activity.CreateClassActivity;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.di.scope.ActivityScope;

import dagger.BindsInstance;
import dagger.Component;

@ActivityScope
@Component(modules = CreateClassModule.class, dependencies = AppComponent.class)
public interface CreateClassComponent {
    void inject(CreateClassActivity activity);

    void inject(ChooseClassActivity chooseClassActivity);

    @Component.Builder
    interface Builder {
        @BindsInstance
        CreateClassComponent.Builder view(CreateClassContract.View view);

        CreateClassComponent.Builder appComponent(AppComponent appComponent);

        CreateClassComponent build();
    }


}